<?php include('_tpl_header.php'); ?>
<div class="box">
<div class="left">
<div class="leftad">
  <div><img src="/data/images/lefttop.gif" width="232" height="15" /></div>
  <div style="padding:10px"><?php echo $L['intro_productnew']; ?></div>
  <div><img src="/data/images/leftbottom.gif" width="232" height="14" /></div>
</div>
<br/>
<div class="leftad">
  <?php include('_tpl_left_menu.php'); ?>
</div>
</div>
<div class="right">
  <div><img src="/data/images/righttop01.gif" width="724" height="18" /></div>
  <div class="box2">
<?php
foreach ($products as $date => $rows)
{

?>
<table width="90%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="23" bgcolor="#E4E4E4">&nbsp;&nbsp;&gt; <a href="/product/list/0/0/<?php echo $date; ?>"><?php echo $date; ?></a></td>
    <td height="23" bgcolor="#E4E4E4" align="right"><a href="/product/list/0/0/<?php echo $date; ?>"><?php echo $L['gLink_More']; ?>...</a></td>
  </tr>
</table>
<table border="0" cellspacing="8" cellpadding="0">
  <tr>
  <?php 
    $i = 1;
    $rows = array_slice($rows , 0 , 8);
    foreach ($rows as $row){ 
  ?>
    <td><a href="/product/list/0/0/<?php echo $date; ?>"><img src="<?php echo $row['cover_url']; ?>" width="150" height="100" /></a></td>
  <?php 
        if($i%4==0)
            echo '</tr><tr>';
            
        $i++;
    } 
  ?>
  </tr>
</table>
<?php    
}
?>
<div align="center" class="red2" style="font-size:16px;">
<?php
echo get_page_10($total , 7 , $page , '/product/new/{page}');
?>
</div>
<div class="clear"></div>
  </div>
  <div><img src="/data/images/rightbottom01.gif" width="724" height="13" /></div>
</div>
<div class="clear"></div>
<div><img src="/data/images/bottom.gif" width="1001" height="19" /></div>
</div>
<?php include('_tpl_footer.php'); ?>